package com.hdoit.apollo.web.shop.modelconfig;

import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.RequiredAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      humaoshu
 * @email       
 * @createtime  2018年05月22日 10:11:52
 * @comment
 */
public class SupplierConfig extends ModelMetadataAttributeConfiguration{
    public SupplierConfig(){
        this.setProperty("supplierName")
         	.hasAttribute(new RequiredAttribute("必填项"))
            .hasAttribute(new DisplayNameAttribute("供应商名称"));

        this.setProperty("supplierNo")
            .hasAttribute(new DisplayNameAttribute("供应商编码"));

        this.setProperty("region")
            .hasAttribute(new DisplayNameAttribute("区域"));

        this.setProperty("address")
            .hasAttribute(new DisplayNameAttribute("详细地址"));

        this.setProperty("contactName")
            .hasAttribute(new DisplayNameAttribute("联系人姓名"));

        this.setProperty("contentPhone")
            .hasAttribute(new DisplayNameAttribute("手机"));

        this.setProperty("contentTel")
            .hasAttribute(new DisplayNameAttribute("电话"));

        this.setProperty("position")
            .hasAttribute(new DisplayNameAttribute("职位"));

        this.setProperty("email")
            .hasAttribute(new DisplayNameAttribute("邮箱"));

        this.setProperty("openingBank")
            .hasAttribute(new DisplayNameAttribute("开户银行"));

        this.setProperty("openAccount")
            .hasAttribute(new DisplayNameAttribute("开户名称"));

        this.setProperty("bankAccount")
            .hasAttribute(new DisplayNameAttribute("银行账户"));

        this.setProperty("invoice")
            .hasAttribute(new DisplayNameAttribute("发票抬头"));

        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店"));

        this.setProperty("comment")
            .hasAttribute(new DisplayNameAttribute("备注"));

    }
}